package com.mentalsurvey.mapper;

import com.mentalsurvey.entity.Question;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author vito
 * @version 1.0
 */
@Mapper
public interface QuestionMapper {
    /**
     * 插入题目
     * @param question 题目对象
     */
    int insert(Question question);

    /**
     * 根据试卷id查询题目
     * @param paperId 试卷id
     * @return 题目对象
     */
    List<Question> selectByPaperId(Integer paperId);
}
